// 评论标签类型
export interface CommentTag {
  id: string;
  name: string;
  color: string;
  description: string;
  category: 'sentiment' | 'feature' | 'issue';
  count: number;
}

// 评论类型
export interface Comment {
  id: string;
  content: string;
  productId: string;
  productName: string;
  username: string;
  createdAt: string;
  tags: CommentTag[];
  tagIds: string[];
  predictionResult?: {
    modelId: string;
    confidence: number;
    predictedAt: string;
  };
  sentiment: 'positive' | 'negative' | 'neutral';
}

// 评论查询参数
export interface CommentQueryParams {
  page: number;
  pageSize: number;
  keyword?: string;
  productId?: string;
  tagId?: string;
  sentiment?: string;
  startDate?: string;
  endDate?: string;
}

// 分页评论结果
export interface CommentPageResult {
  list: Comment[];
  total: number;
  page: number;
  pageSize: number;
  totalPages: number;
}

// 批量预测参数
export interface BatchPredictionParams {
  comments: string[];
  modelId: string;
}

// 预测结果
export interface PredictionResult {
  comment: string;
  tags: {
    tagId: string;
    tagName: string;
    confidence: number;
    color?: string;
  }[];
  sentiment: 'positive' | 'negative' | 'neutral';
  sentimentScore: number;
  modelId: string;
}
    